package mode.observer.guava;

import com.google.common.eventbus.Subscribe;

/**
 * 观察者
 *
 * @author xjx
 * @date 2023/7/27 15:22
 */
public class WeixinUser {
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Subscribe
    public void getMessage(Object arg) {
        System.out.println(this.name + "接收到消息:" + arg);
    }
}
